﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IndustrialMusicWindowsCSharp
{
    internal static class Utilities
    {
        private readonly static char[] base26Chars = "abcdefghijklmnopqrstuvwxyz".ToCharArray();

        internal static string Base26Encode(Int64 value)
        {
            string returnValue = null;
            do
            {
                returnValue = base26Chars[value % 26] + returnValue;
                value /= 26;
            } while (value-- != 0);
            return returnValue;
        }
    }
}
